﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="CodeDetail.ascx.cs" Inherits="Components_MasterData_CodeDetail" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:ScriptManager ID="ScriptManager2" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="u" runat="server">
    <ContentTemplate>
        <div>
            <div class="form-horizontal col-md-6 wrapper-center">
                <div class="form-group">
                    <label class="col-md-4 control-label">
                        Loại danh mục</label>
                    <div class="col-md-8">
                        <telerik:RadComboBox ID="cboCMCode" runat="server" CssClass="col-imp-8" OnSelectedIndexChanged="cboCMCode_SelectedIndexChanged"
                            TabIndex="1" AllowCustomText="True" />
                        <asp:Label ID="lblCMCode" runat="server" ForeColor="Red"></asp:Label>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-4 control-label">
                        Mã danh mục</label>
                    <div class="col-md-8">
                        <telerik:RadTextBox ID="txtCDCode" runat="server" CssClass="col-imp-8" OnTextChanged="txtCDCode_TextChanged"
                            TabIndex="2" />
                        <asp:Label ID="lblCDCode" runat="server" ForeColor="Red"></asp:Label>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-4 control-label">
                        Tên danh mục</label>
                    <div class="col-md-8">
                        <telerik:RadTextBox ID="txtCDName" runat="server" CssClass="col-imp-8" OnTextChanged="txtCDName_TextChanged"
                            TabIndex="3" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-4 control-label">
                        Tên chuẩn</label>
                    <div class="col-md-8">
                        <telerik:RadTextBox ID="txtStandardName" runat="server" CssClass="col-imp-8" OnTextChanged="txtStandardName_TextChanged"
                            TabIndex="4" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-4 control-label">
                        Giá trị số</label>
                    <div class="col-md-8">
                        <telerik:RadNumericTextBox ID="txtNumberValue" runat="server" CssClass="col-imp-8">
                            <NumberFormat DecimalDigits="0" />
                        </telerik:RadNumericTextBox>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-4 control-label">
                        Giá trị ngày</label>
                    <div class="col-md-8">
                        <telerik:RadDatePicker ID="dtpDateTimeValue" runat="server" Skin="Hay" CssClass="col-imp-8" 
                            OnSelectedDateChanged="dtpDateTimeValue_SelectedDateChanged" TabIndex="6">
                            <Calendar ID="Calendar1" UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False"
                                ViewSelectorText="x" Skin="Hay" runat="server" />
                            <DateInput ID="DateInput1" DisplayDateFormat="dd/MM/yyyy" DateFormat="dd/MM/yyyy"
                                runat="server" TabIndex="6" />
                            <DatePopupButton TabIndex="6" />
                        </telerik:RadDatePicker>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-4 control-label">
                        Số thứ tự</label>
                    <div class="col-md-8">
                        <telerik:RadNumericTextBox ID="txtOrdinal" runat="server" CssClass="col-imp-8">
                            <NumberFormat DecimalDigits="0" />
                        </telerik:RadNumericTextBox>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-4 control-label">
                        Ghi chú</label>
                    <div class="col-md-8">
                        <telerik:RadTextBox ID="txtRemark" runat="server" OnTextChanged="txtRemark_TextChanged"
                            TabIndex="8" CssClass="col-imp-8" />
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" ControlToValidate="txtOrdinal"
                            ErrorMessage="Giá trị là kiểu số" ValidationExpression="^\d+$"></asp:RegularExpressionValidator>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-4 control-label">
                        Trạng thái</label>
                    <div class="col-md-8">
                        <telerik:RadComboBox ID="cboStatus" runat="server" CssClass="col-imp-8" OnSelectedIndexChanged="cboStatus_SelectedIndexChanged"
                            TabIndex="9" AutoPostBack="true">
                        </telerik:RadComboBox>
                    </div>
                </div>
                <div class="set-btns text-center">
                    <div class="progressbar">
                        <asp:UpdateProgress ID="up" runat="server" AssociatedUpdatePanelID="u">
                            <ProgressTemplate>
                                <img src="Template/Images/ajax-progress-bar.gif" />
                            </ProgressTemplate>
                        </asp:UpdateProgress>
                    </div>
                    <asp:Button ID="btnSave" runat="server" Text="Lưu" runat="server" class="btn btn-sm btn-primary"
                        OnClick="btnSave_Click" TabIndex="10" />
                    <asp:Button ID="btnNew" runat="server" Text="Nhập lại" runat="server" class="btn btn-sm btn-primary" OnClick="btnNew_Click" TabIndex="11" />
                    <asp:Button ID="btnDelete" runat="server" Text="Xóa" runat="server" class="btn btn-sm btn-warning"
                        OnClick="btnDelete_Click" OnClientClick="return ConfirmOnDelete('Bạn chắc chắn muốn xóa?')"
                        TabIndex="12" />
                    <asp:Button ID="btnGotoList" runat="server" Text="Danh sách" runat="server" class="btn btn-sm btn-primary" OnClick="btnGotoList_Click" TabIndex="13" />
                </div>
            </div>
        </div>
    </ContentTemplate>
</asp:UpdatePanel>
